<!--
 * @Description: 
 * @Author: xiongkuobiao
 * @Date: 2023-02-24 11:35:40
 * @LastEditors: xiongkuobiao
 * @LastEditTime: 2023-02-24 11:38:30
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    let phone = "17671724747";
    let phone1 = phone.slice(0, 3);
    let phone2 = phone.slice(7, 11);
    let result = phone1 + "****" + phone2;
    console.log(result);
  </script>
</html>
